<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        
<%
 request.setAttribute("ctx", request.getContextPath());
 String staticCtx = fr.umlv.m2.jee.portailEtudiant.service.Impl.ConfigurationManagerImpl.staticFilesPath;
 if (staticCtx.equals("")) {
     request.setAttribute("staticCtx", request.getContextPath());
 } else {
     request.setAttribute("staticCtx", staticCtx);
 }
 %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>Tudu Lists</title>
    <meta http-equiv="content-type" content="text/javascript; charset=utf-8"/>
    <meta http-equiv="content-script-type" content="text/javascript" />
    <meta name="Keywords" content="Portail etudiant marne la vallee, ressource marne la valle"/>
    <meta name="Description" content="td tp tutorial marne la vallee."/>
    <link rel="stylesheet" type="text/css" href="${staticCtx}/css/global.css"/>
    <link rel="stylesheet" type="text/css" media="screen" href="${staticCtx}/css/tabs.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="${staticCtx}/css/calendar-blue.css" title="calendar-blue"/>
    <% if (!fr.umlv.m2.jee.portailEtudiant.service.Impl.ConfigurationManagerImpl.googleAnalyticsKey.equals("")) { %>
	 <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
      var pageTracker = _gat._getTracker("<%=fr.umlv.m2.jee.portailEtudiant.service.Impl.ConfigurationManagerImpl.googleAnalyticsKey%>");
      pageTracker._initData();
      pageTracker._trackPageview();
      function tracker(ajaxCall) { pageTracker._trackPageview(ajaxCall); }
     </script>
    <% } else { %>
     <script type="text/javascript">function tracker(ajaxCall) { }</script>
    <% } %>
    <script type="text/javascript" src="${staticCtx}/scripts/tabs.js"></script>
    <script type="text/javascript" src="${staticCtx}/scripts/scriptaculous/prototype.js"></script>
    <script type="text/javascript" src="${staticCtx}/scripts/scriptaculous/scriptaculous.js"></script>
<%
 if (request.isUserInRole("ROLE_USER")) {
%>
    <script type="text/javascript" src="${ctx}/secure/dwr/engine.js"></script>
    <script type="text/javascript" src="${ctx}/secure/dwr/util.js"></script>
    
</head>
<body onload="initMenu();DWRUtil.useLoadingMessage();">
<table width="100%"><tr><td>
<menu:useMenuDisplayer 	name="TabbedMenu"
  						bundle="org.apache.struts.action.MESSAGE">
  						
  <menu:displayMenu name="Info"/>
  <menu:displayMenu name="Todos"/>
  <%
   if (request.isUserInRole("ROLE_ADMIN")) {
  %>
   <menu:displayMenu name="Administration"/>
   <menu:displayMenu name="Monitoring"/>
  <%
   }
  %>
  <menu:displayMenu name="Logout"/>
</menu:useMenuDisplayer>
<%
 } else {
%>
</td>
<body onload="initMenu();">
<table width="100%"><tr><td width="152"><a href="http://tudu.sourceforge.net"><img src="${staticCtx}/images/tudu_logo.png" alt="Tudu Lists" width="150" height="30" border="0"/></a></td><td>
<menu:useMenuDisplayer 	name="TabbedMenu"
  						bundle="org.apache.struts.action.MESSAGE">
  						
  <menu:displayMenu name="Welcome"/>
  <menu:displayMenu name="Register"/>
</menu:useMenuDisplayer>
<%
 }
%>
 </td></tr></table>
 <table align="center" id="page">
  <tr>
   <td>
    <div id="title">Tudu Lists v. <%=tudu.Constants.VERSION%></div>
   </td>
   <td>
    <% if (request.getRemoteUser() != null) { %>
     <div id="username"><img src="${staticCtx}/images/user_suit.png"/> <%=request.getRemoteUser()%></div>
    <% } %>    
   </td>
  </tr>
  <tr>
   <td align="center" colspan="2">
    <div id="content">
    